home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
examples
/
yafr_1.15
/
WdwDefs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-04
|
10KB
|
845 lines
struct Window *FNWindow;
#define Rp FNWindow->RPort
UBYTE DIRUNDOBUFFER[150];
UBYTE FNUNDOBUFFER[33];
UBYTE EXTUNDOBUFFER[18];
struct PropInfo SliderSInfo = {
AUTOKNOB+FREEVERT,
-1,661,
655,655
};
struct Image Image1 = {
0,1,
15,4,
0,
NULL,
0x0000,0x0000,
NULL
};
struct Gadget Slider = {
NULL,
217,35,
23,110,
NULL,
FOLLOWMOUSE,
PROPGADGET,
(APTR)&Image1,
NULL,
NULL,
NULL,
(APTR)&SliderSInfo,
16,
NULL
};
USHORT chip ImageData2[] = {
0xFFFF,0xFFFF,0xFFFE,0xC000,0x0000,0x0006,0xC006,0x0007,
0x0006,0xC000,0x000D,0x8006,0xC00E,0x1F0C,0x0F06,0xC006,
0x199E,0x1986,0xC006,0x198C,0x1986,0xC606,0x198C,0x1986,
0xC60F,0x199E,0x0F06,0xC000,0x0000,0x0006,0xFFFF,0xFFFF,
0xFFFE
};
struct Image Image2 = {
0,0,
47,11,
2,
ImageData2,
0x0001,0x0000,
NULL
};
USHORT chip ImageData3[] = {
0x1FFF,0xFFFF,0xFFF0,0xC000,0x0000,0x0006,0xC006,0x0007,
0x0006,0xC000,0x000C,0x0006,0xC00E,0x0700,0x0F06,0xC006,
0x181E,0x1986,0xC006,0x0180,0x1986,0xC600,0x198C,0x1986,
0xC60F,0x199E,0x0006,0xC000,0x0000,0x0006,0x1FFF,0xFFFF,
0xFFF0,0xE000,0x0000,0x000E,0x1E00,0x0000,0x00F0,0x01F0,
0x0000,0x1F00,0x000F,0x8003,0xE000,0x0000,0x783C,0x0000,
0x0000,0x07C0,0x0000,0x0000,0x783C,0x0000,0x000F,0x8003,
0xE000,0x01F0,0x0000,0x1F00,0x1E00,0x0000,0x00F0,0xE000,
0x0000,0x000E
};
struct Image Image3 = {
0,0,
47,11,
2,
ImageData3,
0x0003,0x0000,
NULL
};
struct Gadget Info = {
&Slider,
165,11,
47,11,
GADGHIMAGE+GADGIMAGE,
GADGIMMEDIATE+TOGGLESELECT,
BOOLGADGET,
(APTR)&Image2,
(APTR)&Image3,
NULL,
NULL,
NULL,
18,
NULL
};
UBYTE filenameSIBuff[33];
struct StringInfo filenameSInfo = {
filenameSIBuff,
FNUNDOBUFFER,
0,
33,
0,
0,0,0,0,0,
0,
0,
NULL
};
SHORT BorderVectors1[] = {
0,0,
217,0,
217,10,
0,10,
0,0
};
struct Border Border1 = {
-2,-1,
1,0,JAM1,
5,
BorderVectors1,
NULL
};
struct Gadget filename = {
&Info,
86,159,
214,9,
NULL,
RELVERIFY,
STRGADGET,
(APTR)&Border1,
NULL,
NULL,
NULL,
(APTR)&filenameSInfo,
12,
NULL
};
UBYTE ExtNameSIBuff[18];
struct StringInfo ExtNameSInfo = {
ExtNameSIBuff,
EXTUNDOBUFFER,
0,
18,
0,
0,0,0,0,0,
0,
0,
NULL
};
SHORT BorderVectors2[] = {
0,0,
155,0,
155,10,
0,10,
0,0
};
struct Border Border2 = {
-2,-1,
1,0,JAM1,
5,
BorderVectors2,
NULL
};
struct Gadget ExtName = {
&filename,
86,147,
152,9,
NULL,
RELVERIFY,
STRGADGET,
(APTR)&Border2,
NULL,
NULL,
NULL,
(APTR)&ExtNameSInfo,
18,
NULL
};
SHORT BorderVectors3[] = {
0,0,
89,0,
89,12,
0,12,
0,1
};
struct Border Border3 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors3,
NULL
};
struct IntuiText IText23 = {
1,0,JAM1,
37,2,
NULL,
"Ok",
NULL
};
struct Gadget ok = {
&ExtName,
6,172,
88,11,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border3,
NULL,
&IText23,
NULL,
NULL,
13,
NULL
};
SHORT BorderVectors4[] = {
0,0,
84,0,
84,10,
0,10,
0,1
};
struct Border Border4 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors4,
NULL
};
struct IntuiText IText24 = {
1,0,JAM1,
19,1,
NULL,
"Parent",
NULL
};
struct Gadget parent = {
&ok,
218,12,
83,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border4,
NULL,
&IText24,
NULL,
NULL,
15,
NULL
};
SHORT BorderVectors5[] = {
0,0,
89,0,
89,12,
0,12,
0,1
};
struct Border Border5 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors5,
NULL
};
struct IntuiText IText25 = {
1,0,JAM1,
21,2,
NULL,
"Cancel",
NULL
};
struct Gadget cancel = {
&parent,
213,172,
88,11,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border5,
NULL,
&IText25,
NULL,
NULL,
14,
NULL
};
SHORT BorderVectors6[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border6 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors6,
NULL
};
struct IntuiText IText26 = {
1,0,JAM1,
10,1,
NULL,
"pipe:",
NULL
};
struct Gadget pipe = {
&cancel,
245,147,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border6,
NULL,
&IText26,
NULL,
NULL,
10,
NULL
};
SHORT BorderVectors7[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border7 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors7,
NULL
};
struct IntuiText IText27 = {
1,0,JAM1,
13,1,
NULL,
"RAD:",
NULL
};
struct Gadget rad = {
&pipe,
245,135,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border7,
NULL,
&IText27,
NULL,
NULL,
9,
NULL
};
SHORT BorderVectors8[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border8 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors8,
NULL
};
struct IntuiText IText28 = {
1,0,JAM1,
13,1,
NULL,
"RAM:",
NULL
};
struct Gadget Ram = {
&rad,
245,124,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border8,
NULL,
&IText28,
NULL,
NULL,
8,
NULL
};
SHORT BorderVectors9[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border9 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors9,
NULL
};
struct IntuiText IText29 = {
1,0,JAM1,
13,1,
NULL,
"VDK:",
NULL
};
struct Gadget vdk = {
&Ram,
245,113,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border9,
NULL,
&IText29,
NULL,
NULL,
7,
NULL
};
SHORT BorderVectors10[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border10 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors10,
NULL
};
struct IntuiText IText30 = {
1,0,JAM1,
13,1,
NULL,
"VD0:",
NULL
};
struct Gadget vd0 = {
&vdk,
245,102,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border10,
NULL,
&IText30,
NULL,
NULL,
6,
NULL
};
SHORT BorderVectors11[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border11 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors11,
NULL
};
struct IntuiText IText31 = {
1,0,JAM1,
13,1,
NULL,
"DH2:",
NULL
};
struct Gadget dh2 = {
&vd0,
245,91,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border11,
NULL,
&IText31,
NULL,
NULL,
5,
NULL
};
SHORT BorderVectors12[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border12 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors12,
NULL
};
struct IntuiText IText32 = {
1,0,JAM1,
13,1,
NULL,
"DH1:",
NULL
};
struct Gadget dh1 = {
&dh2,
245,80,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border12,
NULL,
&IText32,
NULL,
NULL,
4,
NULL
};
SHORT BorderVectors13[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border13 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors13,
NULL
};
struct IntuiText IText33 = {
1,0,JAM1,
13,1,
NULL,
"DF2:",
NULL
};
struct Gadget df2 = {
&dh1,
245,58,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border13,
NULL,
&IText33,
NULL,
NULL,
2,
NULL
};
SHORT BorderVectors14[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border14 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors14,
NULL
};
struct IntuiText IText34 = {
1,0,JAM1,
13,1,
NULL,
"DH0:",
NULL
};
struct Gadget dh0 = {
&df2,
245,69,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border14,
NULL,
&IText34,
NULL,
NULL,
3,
NULL
};
SHORT BorderVectors15[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border15 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors15,
NULL
};
struct IntuiText IText35 = {
1,0,JAM1,
13,1,
NULL,
"DF1:",
NULL
};
struct Gadget df1 = {
&dh0,
245,47,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border15,
NULL,
&IText35,
NULL,
NULL,
1,
NULL
};
SHORT BorderVectors16[] = {
0,0,
57,0,
57,10,
0,10,
0,1
};
struct Border Border16 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors16,
NULL
};
struct IntuiText IText36 = {
1,0,JAM1,
13,1,
NULL,
"DF0:",
NULL
};
struct Gadget df0 = {
&df1,
245,36,
56,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border16,
NULL,
&IText36,
NULL,
NULL,
0,
NULL
};
SHORT BorderVectors17[] = {
0,0,
207,0,
207,109,
0,109,
0,0
};
struct Border Border17 = {
-2,-1,
1,0,JAM1,
5,
BorderVectors17,
NULL
};
struct Gadget filenamebox = {
&df0,
6,36,
204,108,
GADGHBOX+GADGHIMAGE,
GADGIMMEDIATE,
BOOLGADGET,
(APTR)&Border17,
NULL,
NULL,
NULL,
NULL,
17,
NULL
};
UBYTE DirNameSIBuff[150];
struct StringInfo DirNameSInfo = {
DirNameSIBuff,
DIRUNDOBUFFER,
0,
150,
0,
0,0,0,0,0,
0,
0,
NULL
};
SHORT BorderVectors18[] = {
0,0,
297,0,
297,10,
0,10,
0,0
};
struct Border Border18 = {
-2,-1,
1,0,JAM1,
5,
BorderVectors18,
NULL
};
struct Gadget DirName = {
&filenamebox,
6,24,
294,9,
NULL,
RELVERIFY,
STRGADGET,
(APTR)&Border18,
NULL,
NULL,
NULL,
(APTR)&DirNameSInfo,
11,
NULL
};
#define GadgetList2 DirName
struct IntuiText IText39 = {
1,0,JAM1,
6,148,
NULL,
"Extension",
NULL
};
struct IntuiText IText38 = {
1,0,JAM1,
6,159,
NULL,
"Filename",
&IText39
};
struct IntuiText IText37 = {
1,0,JAM1,
5,13,
NULL,
"Directory",
&IText38
};
#define IntuiTextList2 IText37
struct NewWindow NewFNWindow = {
6,9,
307,187,
0,1,
MOUSEMOVE+GADGETDOWN+GADGETUP,
WINDOWDRAG+ACTIVATE,
&DirName,
NULL,
"Enter filename",
NULL,
NULL,
5,5,
640,200,
WBENCHSCREEN
};